package routers

import (
	"github.com/gin-gonic/gin"
	v1 "teacher-helper/api/v1"
	"teacher-helper/middleware"
)

func InitClassRouter(Router *gin.RouterGroup)  {
	ClassRouter := Router.Group("class").Use(middleware.JWTAuth())
	{
		ClassRouter.GET("/getClassList", v1.GetClassList)
		ClassRouter.GET("/getMajorClass", v1.GetMajorClass)
		ClassRouter.GET("/getClassMajorList", v1.GetClassMajorList)
		ClassRouter.POST("/addClass", v1.AddOneClass)
		ClassRouter.PUT("/updateClass", v1.UpdateClass)
		ClassRouter.DELETE("/deleteClass", v1.DeleteClass)
	}
}

